<script setup lang="ts">
import { provide, ref } from 'vue';
import Child from '@/components/ChildComp.vue'

let str = ref('这是父组件provide的属性')
provide('2', str)

</script>

<template>
    <main>
        <div>Parent.vue - {{ str }}</div>
        <Child />
    </main>
</template>
